package com.fisher.checker;

import androidx.annotation.NonNull;

public enum ErrorCode {

    ERR_BARCODE_FORMAT(1, "扫描条码格式不对！"),ERR_PRODUCT_NO(2, "产品型号不相符！"),
    ERR_PRODUCT_DUPLICATE(3, "产品重复扫描！"),

    ERR_E_ITEM_DUPLICATE(4, "电器件重复扫描！"),
    ERR_E_NO(5, "电器件型号不相符！"),

    ERR_DB_ERR(6, "校验不通过，请重试！");

    private int code;
    private String msg;
    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }
}
